package com.lovejes.cuniao.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the cn_deallog table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="cn_deallog"
 */

public abstract class BaseCnDeallog  implements Serializable {

	public static String REF = "CnDeallog";
	public static String PROP_PAYID = "Payid";
	public static String PROP_BUYERMAIL = "Buyermail";
	public static String PROP_USERID = "Userid";
	public static String PROP_ACTID = "Actid";
	public static String PROP_THIRDFEE = "Thirdfee";
	public static String PROP_PHONE = "Phone";
	public static String PROP_SELLERMAIL = "Sellermail";
	public static String PROP_LOGINID = "Loginid";
	public static String PROP_BUSID = "Busid";
	public static String PROP_PAYTIME = "Paytime";
	public static String PROP_TOTALFEE = "Totalfee";
	public static String PROP_CREATERID = "Createrid";
	public static String PROP_STATUS = "Status";
	public static String PROP_ACTKEY = "Actkey";
	public static String PROP_CNFEE = "Cnfee";
	public static String PROP_PRICE = "Price";
	public static String PROP_DEALINFO = "Dealinfo";
	public static String PROP_PERSONNUM = "Personnum";
	public static String PROP_ID = "Id";
	public static String PROP_CONTENT = "Content";
	public static String PROP_CREATETIME = "Createtime";
	public static String PROP_FLAG = "flag";
	public static String PROP_VERIFYTIME = "verifytime";


	// constructors
	public BaseCnDeallog () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseCnDeallog (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String createrid;
	private java.lang.String userid;
	private java.lang.String loginid;
	private java.lang.String phone;
	private java.lang.String actkey;
	private java.lang.String actid;
	private java.lang.String busid;
	private java.lang.String content;
	private java.lang.String dealinfo;
	private java.lang.String sellermail;
	private java.lang.Integer personnum;
	private java.math.BigDecimal price;
	private java.math.BigDecimal totalfee;
	private java.math.BigDecimal cnfee;
	private java.math.BigDecimal thirdfee;
	private java.lang.String status;
	private java.util.Date createtime;
	private java.lang.String payid;
	private java.lang.String buyermail;
	private java.util.Date paytime;
	private java.lang.String flag;	
	private java.util.Date verifytime;


	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: CREATERID
	 */
	public java.lang.String getCreaterid () {
		return createrid;
	}

	/**
	 * Set the value related to the column: CREATERID
	 * @param createrid the CREATERID value
	 */
	public void setCreaterid (java.lang.String createrid) {
		this.createrid = createrid;
	}



	/**
	 * Return the value associated with the column: USERID
	 */
	public java.lang.String getUserid () {
		return userid;
	}

	/**
	 * Set the value related to the column: USERID
	 * @param userid the USERID value
	 */
	public void setUserid (java.lang.String userid) {
		this.userid = userid;
	}



	/**
	 * Return the value associated with the column: LOGINID
	 */
	public java.lang.String getLoginid () {
		return loginid;
	}

	/**
	 * Set the value related to the column: LOGINID
	 * @param loginid the LOGINID value
	 */
	public void setLoginid (java.lang.String loginid) {
		this.loginid = loginid;
	}



	/**
	 * Return the value associated with the column: PHONE
	 */
	public java.lang.String getPhone () {
		return phone;
	}

	/**
	 * Set the value related to the column: PHONE
	 * @param phone the PHONE value
	 */
	public void setPhone (java.lang.String phone) {
		this.phone = phone;
	}



	/**
	 * Return the value associated with the column: ACTKEY
	 */
	public java.lang.String getActkey () {
		return actkey;
	}

	/**
	 * Set the value related to the column: ACTKEY
	 * @param actkey the ACTKEY value
	 */
	public void setActkey (java.lang.String actkey) {
		this.actkey = actkey;
	}



	/**
	 * Return the value associated with the column: ACTID
	 */
	public java.lang.String getActid () {
		return actid;
	}

	/**
	 * Set the value related to the column: ACTID
	 * @param actid the ACTID value
	 */
	public void setActid (java.lang.String actid) {
		this.actid = actid;
	}



	/**
	 * Return the value associated with the column: BUSID
	 */
	public java.lang.String getBusid () {
		return busid;
	}

	/**
	 * Set the value related to the column: BUSID
	 * @param busid the BUSID value
	 */
	public void setBusid (java.lang.String busid) {
		this.busid = busid;
	}



	/**
	 * Return the value associated with the column: CONTENT
	 */
	public java.lang.String getContent () {
		return content;
	}

	/**
	 * Set the value related to the column: CONTENT
	 * @param content the CONTENT value
	 */
	public void setContent (java.lang.String content) {
		this.content = content;
	}



	/**
	 * Return the value associated with the column: DEALINFO
	 */
	public java.lang.String getDealinfo () {
		return dealinfo;
	}

	/**
	 * Set the value related to the column: DEALINFO
	 * @param dealinfo the DEALINFO value
	 */
	public void setDealinfo (java.lang.String dealinfo) {
		this.dealinfo = dealinfo;
	}



	/**
	 * Return the value associated with the column: SELLERMAIL
	 */
	public java.lang.String getSellermail () {
		return sellermail;
	}

	/**
	 * Set the value related to the column: SELLERMAIL
	 * @param sellermail the SELLERMAIL value
	 */
	public void setSellermail (java.lang.String sellermail) {
		this.sellermail = sellermail;
	}



	/**
	 * Return the value associated with the column: PERSONNUM
	 */
	public java.lang.Integer getPersonnum () {
		return personnum;
	}

	/**
	 * Set the value related to the column: PERSONNUM
	 * @param personnum the PERSONNUM value
	 */
	public void setPersonnum (java.lang.Integer personnum) {
		this.personnum = personnum;
	}



	/**
	 * Return the value associated with the column: PRICE
	 */
	public java.math.BigDecimal getPrice () {
		return price;
	}

	/**
	 * Set the value related to the column: PRICE
	 * @param price the PRICE value
	 */
	public void setPrice (java.math.BigDecimal price) {
		this.price = price;
	}



	/**
	 * Return the value associated with the column: TOTALFEE
	 */
	public java.math.BigDecimal getTotalfee () {
		return totalfee;
	}

	/**
	 * Set the value related to the column: TOTALFEE
	 * @param totalfee the TOTALFEE value
	 */
	public void setTotalfee (java.math.BigDecimal totalfee) {
		this.totalfee = totalfee;
	}



	/**
	 * Return the value associated with the column: CNFEE
	 */
	public java.math.BigDecimal getCnfee () {
		return cnfee;
	}

	/**
	 * Set the value related to the column: CNFEE
	 * @param cnfee the CNFEE value
	 */
	public void setCnfee (java.math.BigDecimal cnfee) {
		this.cnfee = cnfee;
	}



	/**
	 * Return the value associated with the column: THIRDFEE
	 */
	public java.math.BigDecimal getThirdfee () {
		return thirdfee;
	}

	/**
	 * Set the value related to the column: THIRDFEE
	 * @param thirdfee the THIRDFEE value
	 */
	public void setThirdfee (java.math.BigDecimal thirdfee) {
		this.thirdfee = thirdfee;
	}



	/**
	 * Return the value associated with the column: STATUS
	 */
	public java.lang.String getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: STATUS
	 * @param status the STATUS value
	 */
	public void setStatus (java.lang.String status) {
		this.status = status;
	}



	/**
	 * Return the value associated with the column: CREATETIME
	 */
	public java.util.Date getCreatetime () {
		return createtime;
	}

	/**
	 * Set the value related to the column: CREATETIME
	 * @param createtime the CREATETIME value
	 */
	public void setCreatetime (java.util.Date createtime) {
		this.createtime = createtime;
	}



	/**
	 * Return the value associated with the column: PAYID
	 */
	public java.lang.String getPayid () {
		return payid;
	}

	/**
	 * Set the value related to the column: PAYID
	 * @param payid the PAYID value
	 */
	public void setPayid (java.lang.String payid) {
		this.payid = payid;
	}



	/**
	 * Return the value associated with the column: BUYERMAIL
	 */
	public java.lang.String getBuyermail () {
		return buyermail;
	}

	/**
	 * Set the value related to the column: BUYERMAIL
	 * @param buyermail the BUYERMAIL value
	 */
	public void setBuyermail (java.lang.String buyermail) {
		this.buyermail = buyermail;
	}



	/**
	 * Return the value associated with the column: PAYTIME
	 */
	public java.util.Date getPaytime () {
		return paytime;
	}

	/**
	 * Set the value related to the column: PAYTIME
	 * @param paytime the PAYTIME value
	 */
	public void setPaytime (java.util.Date paytime) {
		this.paytime = paytime;
	}

	public java.lang.String getFlag() {
		return flag;
	}

	public void setFlag(java.lang.String flag) {
		this.flag = flag;
	}

	public java.util.Date getVerifytime() {
		return verifytime;
	}

	public void setVerifytime(java.util.Date verifytime) {
		this.verifytime = verifytime;
	}

	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.cuniao.domain.CnDeallog)) return false;
		else {
			com.lovejes.cuniao.domain.CnDeallog cnDeallog = (com.lovejes.cuniao.domain.CnDeallog) obj;
			if (null == this.getId() || null == cnDeallog.getId()) return false;
			else return (this.getId().equals(cnDeallog.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}